import http from "@/api/index";

export function cameraList(data:Object): Promise<any> {
  return http.request({
    url: `/admin/config/cameraList`,
    method: "POST",
    data:data
  });
}

export function getIserList(data:Object): Promise<any> {
  return http.request({
    url: `/admin/config/userList`,
    method: "POST",
    data:data
  });
}

export function getDeptTree(data:Object): Promise<any> {
  return http.request({
    url: `/admin/config/getDeptTree`,
    method: "POST",
    data:data
  });
}
export function getActionList(data:Object): Promise<any> {
  return http.request({
    url: `/admin/config/getActionList`,
    method: "POST",
    data:data
  });
}
export function cameraSave(data:Object): Promise<any> {
  return http.request({
    url: `/admin/config/cameraSave`,
    method: "POST",
    data:data
  });
}
export function delCamera(data:Object): Promise<any> {
  return http.request({
    url: `/admin/config/delCamera`,
    method: "POST",
    data:data
  });
}
export function getAllDeptCameraTree(data:Object): Promise<any> {
  return http.request({
    url: `/admin/config/getAllDeptCameraTree`,
    method: "POST",
    data:data
  });
}
